import re

r = '^[0-9a-zA-Z]{6,10}$'
s = '1234567'
print(re.findall(r, s))

r = '^[1-9][0-9]{4,10}$'
s = '1776158988'
print(re.findall(r, s))

r = '(^[\w-]+(\.[\w-]+)*@(qq|163|gmail)(\.[\w-]+)+$)'
s = '1776158988@qq.com'
print(re.match(r, s))